package com.lightsaber.trade.as.entity.param;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.lightsaber.trade.core.entity.BaseEntity;
import com.lightsaber.trade.core.entity.account.Organization;

/**
 * Alarm.
 */
@Entity
@Table(name = "reta_product_type")
public class ProductType extends BaseEntity {

    @Column(name = "category", length = 20)
    private String category;

    @Column(name = "small_category", length = 20)
    private String smallCategory;

    @ManyToOne
    @JoinColumn(name = "org_id",updatable=false)
    private Organization organization;

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getSmallCategory() {
        return smallCategory;
    }

    public void setSmallCategory(String smallCategory) {
        this.smallCategory = smallCategory;
    }

    public Organization getOrganization() {
        return organization;
    }

    public void setOrganization(Organization organization) {
        this.organization = organization;
    }

}
